package com.share.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.admin.model.db.User;
import com.share.admin.model.vo.UserPageReq;
import com.share.common.common.Page;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author author
 * @since 2022-09-22
 */
public interface IUserService extends IService<User> {
    User getByAccount(String account);

    Set<User> listAll();

    Set<User> listByUserId(Long userId);

    Integer bindOrRemoveRoles(Boolean isBind, String userId, List<String> list);

    Page pageList(UserPageReq req);
}
